<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../libs/vue.js"></script>
</head>
<body>
    <div id="app">
        <input type="text" @keyup.meta.cap="getInput">
    </div>
    <script>
        /*
            自定义修饰符
                Vue.config.keyCodes.自定义修饰符名称 = 按键码
            系统修饰符
                ctrl shift alt meta(窗口键)
        */ 
       Vue.config.keyCodes.cap = 20
        let vm = new Vue({
            el:'#app',
            data:{

            },
            methods: {
                getInput(e){
                    // if(e.keyCode === 13) {
                    //     console.log(e.target.value)
                    // }
                    console.log(e.target.value)
                }
            },
        })
    </script>
</body>
</html>